class Student2 {
    fullName : string;
    constructor(public fname,public mid,public lname) {

        this.fullName = fname + "" +mid + "" +lname;
        
    }
}

interface Person2{
    fname:string;
    lname:string;
}

function hi(person : Person2){
    return "hi : " + person.fname+">"+person.lname;
}

var u = new Student2("json","M","jack");

document.body.innerHTML = hi(u);
